how to insert element in array in java